package com.woniuxy.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * @author : mafan
 * @date : 2020-11-18 19:54
 * JPA 是一个协议，该协议规定
 * 1.Java中的实体与数据库中的表的映射关系
 * 2.实体中的属性与表中的列的映射关系
 **/
@Entity(name = "star_user")
@Data
public class User implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer uid;
    private String username;
    private String password;
    private String telephone;
}
